package com.qingmu.club.minaapi.plus.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import java.util.Date;
import com.baomidou.mybatisplus.annotation.TableId;
import java.io.Serializable;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

/**
 * <p>
 * 会员端首页和门店课程banner表
 * </p>
 *
 * @author duke
 * @since 2019-12-15
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
public class Banner extends Model<Banner> {

    private static final long serialVersionUID=1L;

    @TableId(value = "id", type = IdType.ID_WORKER_STR)
    private String id;

    /**
     * banner标题
     */
    private String bannerTitle;

    /**
     * 状态 0禁用 1启用
     */
    private Integer status;

    /**
     * banner图片
     */
    private String bannerImage;

    /**
     * 介绍
     */
    private String bannerIntro;

    /**
     * banner类型 0-首页的 1-课程的
     */
    private Integer bannerType;

    /**
     * 创建时间
     */
    private Date createTime;

    /**
     * 俱乐部id
     */
    private String clubId;

    /**
     * 门店id
     */
    private String shopId;

    /**
     * 门店名称
     */
    private String shopName;

    /**
     * 创建人id
     */
    private String createUserId;


    public static final String ID = "id";

    public static final String BANNER_TITLE = "banner_title";

    public static final String STATUS = "status";

    public static final String BANNER_IMAGE = "banner_image";

    public static final String BANNER_INTRO = "banner_intro";

    public static final String BANNER_TYPE = "banner_type";

    public static final String CREATE_TIME = "create_time";

    public static final String CLUB_ID = "club_id";

    public static final String SHOP_ID = "shop_id";

    public static final String SHOP_NAME = "shop_name";

    public static final String CREATE_USER_ID = "create_user_id";

    @Override
    protected Serializable pkVal() {
        return this.id;
    }

}
